package com.lancoo.ccas52.mapper;
import java.util.Collection;

import com.lancoo.ccas52.entity.PlanTeachingCourseSegment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.ccas52.config.MybatisRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 教学计划-课程-环节中间表 Mapper 接口
 * </p>
 *
 * @author quin.song
 * @since 2023-01-10
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface PlanTeachingCourseSegmentMapper extends BaseMapper<PlanTeachingCourseSegment> {

    int addBatch(@Param("planTeachingCourseSegmentCollection") Collection<PlanTeachingCourseSegment> planTeachingCourseSegmentCollection);


//    /**
//     * 根据教学计划id获取课程、环节对应关系
//     * @param teachPlanIds
//     * @return
//     */
//    List<PlanTeachingCourseSegment> getByTeachingPlanId(@Param("teachPlanIds") List<Long> teachPlanIds);

}
